import axiosInstance from "../index";

export const getProducts = async (data) => {
    return axiosInstance({
        url: '/getProducts',
        headers: {
            'Content-Type': 'application/json'
        },
        method: 'post',
        data,
    })
}

export const addProducts = async (data) => {
    return axiosInstance({
        url: '/addProducts',
        headers: {
            'Content-Type': 'application/json'
        },
        method: 'post',
        data,
    })
}
export const updateProducts = async (data) => {
    return axiosInstance({
        url: '/updateProducts',
        headers: {
            'Content-Type': 'application/json'
        },
        method: 'post',
        data,
    })
}

export const deleteProducts = async (data) => {
    return axiosInstance({
        url: '/deleteProducts',
        headers: {
            'Content-Type': 'application/json'
        },
        method: 'post',
        data,
    })
}
